package top.zhaojx.rpc.transport;

import top.zhaojx.rpc.transport.codec.serializer.CommonSerializer;

/**
 * 服务器类通用接口
 */
public interface RpcServer {

    byte DEFAULT_SERIALIZER = CommonSerializer.PROTOSTUFF_SERIALIZER;

    void start();

    <T> void publishService(T service, String serviceName);
}